/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.lspviolation;

/**
 *
 * @author Siya
 */
public class OverTime extends NormalHours{
    
    private int overTime;
    
    public OverTime(){
    
    }
    public OverTime(int rate){
    
        super(rate);
    }

    /**
     * @return the overTime
     */
    public int getOverTime() {
        return overTime;
    }

    /**
     * @param overTime the overTime to set
     */
    public void setOverTime(int overTime) {
        this.overTime = overTime;
    }
    public double salary(){
    
        return rate * (WORKHOURS + overTime);
    }
}
